<?php

namespace app\common\model;

use think\Model;

class SlideItemModel extends Model
{
    public static function getslide($slide_id)
    {
        return self::where('slide_id', $slide_id)->order('id', 'desc')->select()
            ->each(function ($v, $k) {
                $v['image'] = cmf_get_image_url($v['image']);
            });
    }
}
